package cn.com.cloudpioneer.evaluate.utils;

import lombok.Data;
/**
 * @auther maruikai
 * @create 2022/11/2-16:16
 */
@Data
public class OPResponse {

    protected int code;
    protected String message;
    protected Object data;

    public OPResponse() {
    }

    public OPResponse(Object data) {
        this.code = ReturnCode.RC200.getCode();
        this.message = ReturnCode.RC200.getMessage();
        this.data = data;
    }

    public OPResponse(int code, String message, Object data) {
        this.code = code;
        this.message = message;
        this.data = data;
    }
}
